<div class="container-fluid" style="margin: 0;padding: 0;">
    <div class="row" style="margin: 0;padding: 0">
        <div class="col-md-12" style="padding: 0">
            <div id="cookie-notice" class="alert alert-info alert-dismissible fade in" style="margin: 0;">
                <button type="button" onclick="javascript:addCookie();" class="close" data-dismiss="alert" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                    <!--<span aria-hidden="true">明白了</span>-->
                    <span class="sr-only">Close</span>
                </button>
                <p class="text-center">Cookie有助于我们提供服务。使用我们的服务，即表示您同意我们使用Cookie</p>
            </div>

        </div>
    </div>
</div>

<script type="application/javascript">
    // determine whether alert should be displayed
    cookie_name = '_accept_cookie';
    function addCookie(){
        var acceptCookie = $.cookie(cookie_name);
        if (acceptCookie == null){
            //set cookie
            $.cookie(cookie_name,1);
        }
    }
    $(document).ready(function(){
        console.log($.cookie(cookie_name));
        if($.cookie(cookie_name) == 1){

            $("#cookie-notice").alert('close')
        }
    })
</script>